
//用户登录
var URL_LOGIN="/service-admin/login";
var URL_EXTCODE = "/service-admin/extcode";
var salt='';

//正常相应
var  RESP_SUCCESS = 200;
//响应错误
var RESP_ERROR = 201;
//没有登录
var RESP_NOTLOGIN = 401;
//错误请求
var RESP_BADREQ = 400;
//没有许可
var RESP_NOPERMIT = 403;

var getWebPath = function(path){
	if(sessionStorage.getItem('sysfunc'))
		return JSON.parse(sessionStorage.getItem('sysfunc'))[path];
	else
		return '';
}

/**
 * 将null数据转为空字符串
 */
var showNull = function(obj){
	if(!obj || obj == null || obj == NaN) return '';
	else if(typeof(obj) == 'undefined') return '';
	return obj;
}